package cn.jsc.pet.mapper;

import cn.jsc.basic.mapper.BaseMapper;
import cn.jsc.pet.domain.PetDetail;

import java.io.Serializable;
import java.util.List;

public interface PetDetailMapper extends BaseMapper<PetDetail> {
    PetDetail loadByPetId(Long productId);

    /**
     * 根据宠物id删除宠物明细
     * @param id
     */
    void removeByPetId(Serializable id);

    /**
     * 根据宠物id修改宠物明细
     * @param detail
     */
    void updateByPetId(PetDetail detail);

    /**
     * 根据宠物id批量删除宠物明细
     * @param ids
     */
    void batchDeleteByPetId(List<Long> ids);
}
